import 'package:event_bus/event_bus.dart';
import 'package:flutterstudyapplast/services/api/api_implementation.dart';
import 'package:shared_preferences/shared_preferences.dart';

class AppManager {
  static const String ACCOUNT = "username";
  static EventBus eventBus = EventBus();
  static SharedPreferences prefs;


  static initApp() async {
    await ApiImpl.init();
    prefs = await SharedPreferences.getInstance();
  }

  static isLogin() {
    return  prefs.getString(ACCOUNT) != null;
  }
}
